package com.situ.study.entity;

import java.lang.reflect.Constructor;

/**
 * 员工类
 */
public class User {
	// 属性私有
	private int id;
	private String name;
	private int age;
	private String gender;
	
	// 生成带参数构造方法后，最好生成一个无参构造方法
	public User() {
		super();
	}

	public User(int id, String name, int age, String gender) {
		// 调用父类构造方法
		super();
		this.id = id;
		this.name = name;
		this.age = age;
		this.gender = gender;
	}
	
	public User(String name, int age, String gender) {
		super();
		this.name = name;
		this.age = age;
		this.gender = gender;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", age=" + age + ", gender=" + gender + "]";
	}

}
